﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.CMS263.PO;
using Com.CMS263.BLL;
using Com.CMS263.Util;

namespace Com.CMS263.Web.manage.UserManager
{
    public partial class UserList : System.Web.UI.Page
    {
        public IList<CustomerList> cusList = new List<CustomerList>();
        CustomerListBLL cusBll = new CustomerListBLL();
        public int page;
        public int pageSize = 20;
        public int count;
        public string username;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.QueryString["page"]))
            {
                page = int.Parse(Request.QueryString["page"]);
            }else
            {
                page = 1;
            }
            username = Request["username"];
            cusList = cusBll.FindList(username,page,pageSize);
            count = cusBll.GetCount(username);           
        }
        public string GetPage()
        {
            return EnPager.GetNumPager(5, count, pageSize, page, "");
        }
    }
}
